/*!
 * Vditor v1.7.2 - A markdown editor written in TypeScript.
 *   
 * MIT License
 * 
 * Copyright (c) 2019 B3log 开源, b3log.org
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 * 
 */
@-webkit-keyframes tooltip-appear {
    0% {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

@keyframes tooltip-appear {
    0% {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

.vditor-tooltipped {
    position: relative;
    cursor: pointer
}

.vditor-tooltipped:after {
    z-index: 1000000;
    padding: 5px 8px;
    font-size: 11px;
    font-weight: 400;
    -webkit-font-smoothing: subpixel-antialiased;
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: break-word;
    white-space: pre;
    content: attr(aria-label);
    background: rgba(0, 0, 0, .8);
    border-radius: 3px;
    line-height: 16px
}

.vditor-tooltipped:after, .vditor-tooltipped:before {
    position: absolute;
    display: none;
    pointer-events: none;
    opacity: 0
}

.vditor-tooltipped:before {
    z-index: 1000001;
    width: 0;
    height: 0;
    color: rgba(0, 0, 0, .8);
    content: "";
    border: 5px solid transparent
}

.vditor-tooltipped--hover:after, .vditor-tooltipped--hover:before, .vditor-tooltipped:active:after, .vditor-tooltipped:active:before, .vditor-tooltipped:focus:after, .vditor-tooltipped:focus:before, .vditor-tooltipped:hover:after, .vditor-tooltipped:hover:before {
    display: inline-block;
    text-decoration: none;
    -webkit-animation-name: tooltip-appear;
    animation-name: tooltip-appear;
    -webkit-animation-duration: .15s;
    animation-duration: .15s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in
}

.vditor-tooltipped__s:after, .vditor-tooltipped__se:after, .vditor-tooltipped__sw:after {
    top: 100%;
    right: 50%;
    margin-top: 5px
}

.vditor-tooltipped__s:before, .vditor-tooltipped__se:before, .vditor-tooltipped__sw:before {
    top: auto;
    right: 50%;
    bottom: -5px;
    margin-right: -5px;
    border-bottom-color: rgba(0, 0, 0, .8)
}

.vditor-tooltipped__se:after {
    right: auto;
    left: 50%;
    margin-left: -15px
}

.vditor-tooltipped__sw:after {
    margin-right: -15px
}

.vditor-tooltipped__n:after, .vditor-tooltipped__ne:after, .vditor-tooltipped__nw:after {
    right: 50%;
    bottom: 100%;
    margin-bottom: 5px
}

.vditor-tooltipped__n:before, .vditor-tooltipped__ne:before, .vditor-tooltipped__nw:before {
    top: -5px;
    right: 50%;
    bottom: auto;
    margin-right: -5px;
    border-top-color: rgba(0, 0, 0, .8)
}

.vditor-tooltipped__ne:after {
    right: auto;
    left: 50%;
    margin-left: -15px
}

.vditor-tooltipped__nw:after {
    margin-right: -15px
}

.vditor-tooltipped__n:after, .vditor-tooltipped__s:after {
    transform: translateX(50%)
}

.vditor-tooltipped__w:after {
    right: 100%;
    bottom: 50%;
    margin-right: 5px;
    transform: translateY(50%)
}

.vditor-tooltipped__w:before {
    top: 50%;
    bottom: 50%;
    left: -5px;
    margin-top: -5px;
    border-left-color: rgba(0, 0, 0, .8)
}

.vditor-tooltipped__e:after {
    bottom: 50%;
    left: 100%;
    margin-left: 5px;
    transform: translateY(50%)
}

.vditor-tooltipped__e:before {
    top: 50%;
    right: -5px;
    bottom: 50%;
    margin-top: -5px;
    border-right-color: rgba(0, 0, 0, .8)
}

@-webkit-keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(.5)
    }
    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(.5)
    }
    to {
        opacity: 1;
        transform: scale(1)
    }
}

.vditor-panel {
    background-color: #fff;
    position: absolute;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    border-radius: 3px;
    padding: 5px;
    z-index: 1;
    font-size: 14px;
    display: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    max-width: 320px;
    min-width: 80px;
    -webkit-animation-duration: .15s;
    animation-duration: .15s;
    -webkit-animation-name: scale-in;
    animation-name: scale-in;
    -webkit-animation-timing-function: cubic-bezier(.2, 0, .13, 1.5);
    animation-timing-function: cubic-bezier(.2, 0, .13, 1.5)
}

.vditor-panel h1, .vditor-panel h2, .vditor-panel h3, .vditor-panel h4, .vditor-panel h5, .vditor-panel h6 {
    margin: 0;
    cursor: pointer;
    padding: 3px 10px;
    border-radius: 3px;
    line-height: normal
}

.vditor-panel h1:hover, .vditor-panel h2:hover, .vditor-panel h3:hover, .vditor-panel h4:hover, .vditor-panel h5:hover, .vditor-panel h6:hover {
    background-color: #4285f4;
    color: #fff
}

.vditor-toolbar {
    background-color: #f6f8fa;
    border-bottom: 1px solid #d1d5da;
    padding: 0 5px;
    border-radius: 3px 3px 0 0
}

.vditor-toolbar > div {
    padding: 10px 5px;
    float: left;
    line-height: 14px;
    height: 36px;
    box-sizing: border-box
}

.vditor-toolbar svg {
    fill: currentColor;
    display: inline-block;
    stroke-width: 0;
    stroke: currentColor;
    width: 14px;
    height: 14px
}

.vditor-toolbar .vditor-tooltipped {
    color: #586069
}

.vditor-toolbar .vditor-tooltipped:hover {
    color: #4285f4
}

.vditor-toolbar label {
    overflow: hidden;
    position: relative;
    height: 14px;
    width: 15px;
    display: block;
    cursor: pointer
}

.vditor-toolbar label input, .vditor-toolbar label svg {
    position: absolute;
    top: 0;
    left: 0
}

.vditor-toolbar label input {
    width: 15px;
    height: 15px;
    opacity: .001;
    overflow: hidden
}

.vditor-menu--current svg {
    color: #4285f4
}

.vditor-menu__divider {
    width: 10px
}

.vditor-menu__br {
    width: 100%;
    padding: 0 !important;
    height: 0 !important
}

.vditor-emojis {
    display: inline-block;
    overflow: auto
}

.vditor-emojis::-webkit-scrollbar {
    display: none
}

.vditor-emojis__tip {
    flex: 1;
    width: 200px;
    margin-right: 10px;
    color: #586069;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden
}

.vditor-emojis__tail {
    margin-top: 5px;
    font-size: 12px;
    color: #586069;
    display: flex
}

.vditor-emojis__tail a {
    text-decoration: none;
    color: #586069
}

.vditor-emojis__tail a:hover {
    color: #4285f4
}

.vditor-emojis span {
    cursor: pointer;
    border-radius: 3px;
    float: left;
    height: 30px;
    width: 30px;
    text-align: center;
    line-height: 26px;
    padding: 3px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all .15s ease-in-out
}

.vditor-emojis span:hover {
    transform: scale(1.2)
}

.vditor-emojis img {
    height: 20px;
    width: 20px;
    float: left;
    margin: 3px 0 0 3px
}

@-webkit-keyframes slideInDown {
    0% {
        transform: translate3d(0, -100%, 0);
        visibility: visible
    }
    to {
        transform: translateZ(0)
    }
}

@keyframes slideInDown {
    0% {
        transform: translate3d(0, -100%, 0);
        visibility: visible
    }
    to {
        transform: translateZ(0)
    }
}

.vditor {
    display: flex;
    flex-direction: column;
    border: 1px solid #d1d5da;
    border-radius: 3px;
    box-sizing: border-box
}

.vditor--fullscreen {
    position: fixed;
    top: 0;
    width: 100% !important;
    left: 0;
    height: 100vh !important;
    z-index: 90;
    background-color: #fff
}

.vditor-content {
    display: flex;
    min-height: 60px;
    flex: 1;
    position: relative
}

.vditor-textarea {
    height: 100%;
    overflow: auto;
    width: 100%;
    flex: 1;
    border: 0;
    resize: none;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fafbfc;
    outline: 0 none;
    font-size: 16px;
    line-height: 22px;
    color: #24292e;
    border-radius: 0 0 3px 3px
}

.vditor-textarea[contenteditable=false] {
    opacity: .3;
    cursor: not-allowed
}

.vditor-textarea:focus {
    background-color: #fff
}

.vditor-textarea:empty:before {
    content: attr(placeholder);
    color: rgba(36, 41, 46, .68)
}

.vditor-preview {
    flex: 1;
    background-color: #fff;
    overflow: auto;
    padding: 10px;
    box-shadow: inset 1px 0 #d1d5da;
    box-sizing: border-box;
    border-radius: 0 0 3px 0
}

.vditor-preview--editor {
    display: none
}

.vditor-preview--both {
    display: block
}

.vditor-preview--preview {
    position: absolute;
    top: 0;
    left: -1px;
    bottom: 0;
    right: 0;
    display: block
}

.vditor-preview > div::-webkit-scrollbar {
    display: none
}

.vditor-preview > .vditor-reset {
    margin: 0 auto
}

.vditor-counter {
    padding: 0 3px;
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: #24292e;
    background-color: hsla(0, 0%, 100%, .6);
    border-radius: 3px;
    font-size: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.vditor-counter--error {
    color: #d23f31;
    background-color: rgba(210, 63, 49, .1)
}

.vditor-resize {
    padding: 3px 0;
    cursor: row-resize;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: absolute;
    width: 100%
}

.vditor-resize--top {
    top: -3px
}

.vditor-resize--bottom {
    bottom: -3px
}

.vditor-resize > div {
    height: 3px;
    background-color: #f6f8fa;
    transition: all .15s ease-in-out
}

.vditor-resize--selected > div, .vditor-resize:hover > div {
    background-color: #4285f4
}

.vditor-resize--selected svg, .vditor-resize:hover svg {
    color: #fff
}

.vditor-resize svg {
    fill: currentColor;
    stroke-width: 0;
    stroke: currentColor;
    width: 13px;
    height: 3px;
    display: block;
    margin: 0 auto;
    color: #586069
}

.vditor-upload {
    position: absolute;
    height: 3px;
    left: 0;
    top: -2px;
    transition: all .15s ease-in-out;
    background-color: rgba(66, 133, 244, .8)
}

.vditor-tip {
    position: absolute;
    font-size: 12px;
    top: 10px;
    color: #fff;
    -webkit-animation-duration: .15s;
    animation-duration: .15s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    width: 100%;
    text-align: center
}

.vditor-tip--show {
    display: block;
    -webkit-animation-name: slideInDown;
    animation-name: slideInDown
}

.vditor-tip__content {
    text-align: left;
    display: inline-block;
    line-height: 16px;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(66, 133, 244, .8);
    position: relative
}

.vditor-tip__content ul {
    margin: 2px 0;
    padding: 0 0 0 18px
}

.vditor-tip__close {
    position: absolute;
    color: #586069;
    top: -7px;
    right: -15px;
    font-weight: 700;
    cursor: pointer
}

.vditor-tip__close:hover {
    color: #4285f4
}

.vditor-hint {
    background-color: #fff;
    position: absolute;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    border-radius: 3px;
    padding: 5px 0;
    z-index: 1;
    line-height: 20px;
    list-style: none;
    color: #24292e;
    font-size: 12px;
    margin: 0;
    max-width: 200px;
    min-width: 80px;
    display: none
}

.vditor-hint li {
    cursor: pointer;
    padding: 3px 10px;
    border-bottom: 1px solid #d1d5da;
    line-height: 20px
}

.vditor-hint li:last-child {
    border-bottom: 0
}

.vditor-hint--current, .vditor-hint li:hover {
    background-color: #4285f4;
    color: #fff
}

.vditor-hint__emoji {
    font-size: 16px;
    float: left;
    margin-right: 3px
}

.vditor-hint img {
    height: 20px;
    width: 20px;
    float: left;
    margin-right: 3px
}

.vditor-reset {
    font-family: Helvetica Neue, Luxi Sans, DejaVu Sans, Tahoma, Hiragino Sans GB, Microsoft Yahei, sans-serif;
    word-wrap: break-word;
    overflow: auto;
    line-height: 1.65;
    font-size: 16px;
    word-break: break-word
}

.vditor-reset img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    height: auto;
    -ms-interpolation-mode: bicubic;
    overflow: hidden;
    font-size: 12px;
}

.vditor-reset ul ul ul {
    list-style-type: square
}

.vditor-reset ul ul {
    list-style-type: circle
}

.vditor-reset ul {
    list-style-type: disc
}

.vditor-reset ol, .vditor-reset ul {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 16px
}

.vditor-reset li {
    margin-top: .25em
}

.vditor-reset audio {
    max-width: 100%
}

.vditor-reset audio:focus {
    outline: none
}

.vditor-reset video {
    max-height: 90vh
}

.vditor-reset img.emoji {
    cursor: auto;
    max-width: 20px;
    vertical-align: sub
}

.vditor-reset h1, .vditor-reset h2, .vditor-reset h3, .vditor-reset h4, .vditor-reset h5, .vditor-reset h6 {
    margin-top: 24px;
    margin-bottom: 16px;
    font-weight: 600;
    line-height: 1.25
}

.vditor-reset h1 {
    font-size: 1.7em
}

.vditor-reset h1, .vditor-reset h2 {
    padding-bottom: .3em;
    border-bottom: 1px solid #eee
}

.vditor-reset h2 {
    font-size: 1.5em
}

.vditor-reset h3 {
    font-size: 1.25em
}

.vditor-reset h4 {
    font-size: 1em
}

.vditor-reset h5 {
    font-size: .875em
}

.vditor-reset h6 {
    font-size: .85em
}

.vditor-reset hr {
    height: 2px;
    padding: 0;
    margin: 24px 0;
    background-color: #e7e7e7;
    border: 0
}

.vditor-reset p {
    margin-top: 0;
    margin-bottom: 16px
}

.vditor-reset blockquote {
    padding: 0 1em;
    color: #777;
    border-left: .25em solid #ddd;
    margin: 0 0 16px
}

.vditor-reset blockquote p {
    margin: 0
}

.vditor-reset ins > iframe {
    border: 0
}

.vditor-reset iframe {
    border: 1px solid #d1d5da;
    max-width: 100%;
    box-sizing: border-box
}

.vditor-reset table {
    width: 100%;
    border: 1px solid #dedede;
    margin: 15px auto;
    border-collapse: collapse;
    empty-cells: show
}

.vditor-reset thead {
    text-align: center
}

.vditor-reset td, .vditor-reset th {
    height: 35px;
    border: 1px solid #dedede;
    padding: 0 10px
}

.vditor-reset th {
    font-weight: 700;
    text-align: center !important;
    background: rgba(158, 188, 226, .2)
}

.vditor-reset tbody tr:nth-child(2n) {
    background: rgba(158, 188, 226, .12)
}

.vditor-reset tr:hover {
    background: #efefef
}

.vditor-reset code {
    padding: .2em .4em;
    margin: 0;
    font-size: 85%;
    border-radius: 3px;
    font-family: mononoki, Consolas, Liberation Mono, Menlo, Courier, monospace;
    word-break: break-word;
    background-size: 20px 20px;
    background-image: url()
}

.vditor-reset pre > code {
    padding: .5em;
    border-radius: 5px;
    display: block;
    overflow: auto
}

.vditor-reset pre:hover div.vditor-copy {
    display: block
}

.vditor-reset kbd {
    display: inline-block;
    padding: 3px 5px;
    font: 11px Consolas, Liberation Mono, Menlo, Courier, monospace;
    line-height: 10px;
    color: #555;
    vertical-align: middle;
    background-color: #fcfcfc;
    border: 1px solid #d1d5da;
    border-bottom-color: #bbb;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 #bbb
}

.vditor-reset summary {
    cursor: pointer
}

.vditor-reset summary:focus {
    outline: none
}

.vditor-reset svg {
    height: auto;
    width: auto
}

.vditor-reset blockquote:last-child, .vditor-reset hr:last-child, .vditor-reset ol:last-child, .vditor-reset p:last-child, .vditor-reset pre:last-child, .vditor-reset ul:last-child {
    margin-bottom: 0
}

.vditor-reset .katex {
    position: relative
}

.vditor-reset .language-echarts {
    overflow: hidden;
    height: 420px
}

.vditor-task {
    list-style: none;
    margin-left: -1.4em;
    display: flex;
    align-items: center
}

.vditor-task input {
    margin-right: 5px
}

.vditor-copy {
    position: relative;
    display: none
}

.vditor-copy textarea {
    position: absolute;
    left: -100000px
}

.vditor-copy span {
    cursor: pointer;
    position: absolute;
    right: .5em;
    top: .5em;
    background-color: #f6f8fa;
    border-radius: 3px;
    padding: 3px
}

.vditor-copy span, .vditor-copy svg {
    height: 14px;
    width: 14px;
    display: block
}

.vditor-copy svg {
    color: #586069;
    fill: currentColor
}